技術問答
技術文章
iT 徵才
Tag
聊天室
2025 鐵人賽
登入/註冊
問答
文章
Tag
邦友
鐵人賽
搜尋
2017 iT 邦幫忙鐵人賽
DAY
11
0
自我挑戰組
iOS 筆記
系列 第
11
篇
檢查每個 function 跑了多久
2017鐵人賽
生蠔
2016-12-11 17:40:37
933 瀏覽
分享至
這個方法是在
這裡
看到的,可以設定讓跑超過幾秒的 function 跳出警告。
按以下步驟操作就可以了:
Navigate to your target in Xcode (not the project)
Click the “Build Settings” tab
Make sure that “All” settings are being shown, not “Basic”
Scroll to (or search for) “Other Swift Flags”
Add two flags: -Xfrontend and -warn-long-function-bodies=100, where 100 is the number of milliseconds you’d like the warning threshold to be
Compile your project
留言
追蹤
檢舉
上一篇
frame vs bounds 系列 part 2:什麼時候使用
下一篇
frame vs bounds 系列 part 3:bounds.origin 不是 (0,0) 的情況
系列文
iOS 筆記
共
30
篇
目錄
RSS系列文
訂閱系列文
6
人訂閱
26
什麼是 AppDelegate?part2
27
什麼是 AppDelegate ? Part3
28
UICollectionView
29
UICollectionView part2
30
iOS 筆記完結
完整目錄
熱門推薦
{{ item.subject }}
{{ item.channelVendor }}
|
{{ item.webinarstarted }}
|
{{ formatDate(item.duration) }}
直播中
立即報名
尚未有邦友留言
立即登入留言
iThome鐵人賽
參賽組數
419
組
團體組數
14
組
累計文章數
3256
篇
最後報名日
9/15
看影片追技術
看更多
{{ item.subject }}
{{ item.channelVendor }}
|
{{ formatDate(item.duration) }}
直播中
熱門tag
看更多
15th鐵人賽
16th鐵人賽
13th鐵人賽
14th鐵人賽
12th鐵人賽
11th鐵人賽
鐵人賽
2019鐵人賽
javascript
2018鐵人賽
python
2017鐵人賽
17th鐵人賽
windows
php
c#
windows server
linux
css
react
熱門問題
不知道網路紅隊的要去那加公司
備份映像檔
Jaspersoft 的資料庫連結 出現錯誤:驅動程式無法使用安全通訊端層 (SSL) 加密建立與 SQL Server 的安全連接。
Outlook 寄件備份消失問題 (已解決)
aws ec2 檢查故障問題
請問有人遇過在lightsail上部屬fastapi失敗的案例?
IIS 管理員 連線功能不見
port-forwading到遠程網段
尋求git之外的 高效能本機檔案備份 & 版本管理推薦
熱門回答
不知道網路紅隊的要去那加公司
尋求git之外的 高效能本機檔案備份 & 版本管理推薦
備份映像檔
請問有人遇過在lightsail上部屬fastapi失敗的案例?
aws ec2 檢查故障問題
熱門文章
什麼是 Signal ?
序: AI 加速編碼後,你該學什麼?
Signal 的核心概念
第11天,LibreOffice 更省錢 / 司機俱樂部 宵夜好選擇(台北松山)| 30天滷肉飯
第12天,即時通訊軟體選擇 / 金峰滷肉飯 台北名店(台北中正)| 30天滷肉飯
IT邦幫忙
×
標記使用者
輸入對方的帳號或暱稱
Loading
找不到結果。
標記
{{ result.label }}
{{ result.account }}